package spring.superrun.record.mvc.dto;

import org.hibernate.validator.constraints.Length;

/**
 * 小程序登录Dto
 */
public class WeChatMinLoginDto {
    /**
     * 登录code
     */
    @Length(min = 10,max = 60,message = "登录code只能为10和60字符之间")//003w35ll23LQY64aSOkl2D8X2c4w35lG
    private String Code ;
    /// <summary>
    /// 用户id
    /// </summary>
    @Length(min = 10,max = 50,message = "用户id只能为10和50字符之间")
    private String Id ;
    /// <summary>
    /// 微信昵称
    /// </summary>
    @Length(min = 10,max = 60,message = "微信昵称只能为10和60字符之间")
    private String NickName ;
    /// <summary>
    /// 用户头像链接
    /// </summary>
    @Length(min = 10,max = 500,message = "用户头像地址只能为10和60字符之间")
    private String AvatarUrl ;
    /// <summary>
    /// 性别 男/女
    /// </summary>
    @Length(min = 1,max = 1,message = "性别只能为1个字符")
    private String Sex ;

    public String getCode() {
        return Code;
    }

    public void setCode(String code) {
        Code = code;
    }

    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getNickName() {
        return NickName;
    }

    public void setNickName(String nickName) {
        NickName = nickName;
    }

    public String getAvatarUrl() {
        return AvatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        AvatarUrl = avatarUrl;
    }

    public String getSex() {
        return Sex;
    }

    public void setSex(String sex) {
        Sex = sex;
    }
}
